<!DOCTYPE html >
<html>
<head>
<meta name="Generator" content="TPshop v1.1" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>首页-{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/public.css"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/index.css"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/style.css"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/swiper.min.css"/>
<script type="text/javascript" src="__STATIC__/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/swiper.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
<script type="text/javascript" src="__STATIC__/js/TouchSlide.1.1.js"></script>
<script type="text/javascript" src="__STATIC__/js/jquery.json.js"></script>
<script type="text/javascript" src="__STATIC__/js/touchslider.dev.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer.js" ></script>

<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/mobile_common.js"></script>
	<style>
		.bottom_nav a p{
			margin-top: -15px;
		}
	</style>

</head>
<body>
<div id="page" class="showpage">
<div>
<header id="header">
<a href="{:U('Goods/categoryList')}" class="top_bt"></a><a href="{:U('Cart/cart')}" class='user_btn'></a>
<span href="javascript:void(0)" class="logo">{$tpshop_config['shop_info_store_name']}</span>
</header>

<div id="scrollimg" class="scrollimg">
  <div class="bd">
	 <ul>
	 	<adv pid ="2" limit="5" item="v">
	    	<li><a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> ><img src="{$v[ad_code]}" title="{$v[title]}"width="100%" style="{$v[style]}"/></a></li>
     	</adv>
     </ul>
  </div>
  <div class="hd">
	<ul></ul>
  </div>
</div>
<script type="text/javascript">
	TouchSlide({
		slideCell:"#scrollimg",
		titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
		mainCell:".bd ul", 
		effect:"leftLoop", 
		autoPage:true,//自动分页
		autoPlay:true //自动播放
	});
</script> 
<!--<div id="fake-search" class="index_search">-->
  <!--<div class="index_search_mid">-->
  <!--<span><img src="__STATIC__/images/xin/icosousuo.png"></span>-->
    <!--<input  type="text" id="search_text" class="search_text" value="请输入您所搜索的商品"/>-->
  <!--</div>-->
<!--</div>-->
<!--<div class="entry-list clearfix">-->
	<!--<nav>-->
		<!--<ul>-->
			<!--<li>-->
				<!--<a href="{:U('Goods/categoryList')}">-->
					<!--<img alt="全部分类" src="__STATIC__/images/1440437165699930301.png" />-->
					<!--<span>全部分类</span>-->
				<!--</a>-->
			<!--</li>		 -->
			<!--<li>-->
				<!--<a href="{:U('Activity/group_list')}">-->
					<!--<img alt="我的订单" src="__STATIC__/images/1440439318451279676.png" />-->
					<!--<span>团购</span>-->
				<!--</a>-->
			<!--</li>-->
			<!--<li>-->
				<!--<a href="{:U('Cart/cart')}">-->
					<!--<img alt="购物车" src="__STATIC__/images/1440439353048484531.png" />-->
					<!--<span>购物车</span>-->
				<!--</a>-->
			<!--</li>-->
			<!--<li>-->
				<!--<a href="{:U('User/index')}">-->
					<!--<img alt="个人中心" src="__STATIC__/images/1440439367001464442.png" />-->
					<!--<span>个人中心</span>-->
				<!--</a>-->
			<!--</li>-->
		<!--</ul>-->
	<!--</nav>-->
<!--</div>-->
 <!---->
<!--<div class="floor_images">-->
	  <!--<dl>-->
	    <!--<dt>-->
	      <!--<adv  limit="1" item="v" pid="300">        -->
            <!--<a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> >-->
                <!--<img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}" border="0">-->
            <!--</a> -->
		  <!--</adv>              -->
        <!--</dt>    -->
        <!--<dd> -->
            <!--<span class="Edge">-->
		      <!--<adv  limit="1" item="v" pid="301">            -->
                <!--<a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> >-->
                    <!--<img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}" border="0">-->
                <!--</a>-->
               <!--</adv>-->
            <!--</span> -->
            <!--<span>-->
		      <!--<adv  limit="1" item="v" pid="302">-->
                <!--<a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> >-->
                    <!--<img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}" border="0">-->
                <!--</a>-->
               <!--</adv>           -->
            <!--</span> -->
        <!--</dd>-->
	  <!--</dl>-->
	  <!--<ul>-->
	    <!--<li class="brom">-->
		      <!--<adv  limit="1" item="v" pid="303">-->
                <!--<a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> >-->
                    <!--<img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}" border="0">-->
                <!--</a>-->
               <!--</adv>        -->
        <!--</li>-->
	    <!--<li>-->
		      <!--<adv  limit="1" item="v" pid="304">-->
                <!--<a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> >-->
                    <!--<img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}" border="0">-->
                <!--</a>-->
               <!--</adv>        -->
        <!--</li>-->
	  <!--</ul>-->
<!--</div>-->
<script>
/* 
var Tday = new Array();
var daysms = 24 * 60 * 60 * 1000
var hoursms = 60 * 60 * 1000
var Secondms = 60 * 1000
var microsecond = 1000
var DifferHour = -1
var DifferMinute = -1
var DifferSecond = -1
function clock(key)
{
   var time = new Date()
   var hour = time.getHours()
   var minute = time.getMinutes()
   var second = time.getSeconds()
   var timevalue = ""+((hour > 12) ? hour-12:hour)
   timevalue +=((minute < 10) ? ":0":":")+minute
   timevalue +=((second < 10) ? ":0":":")+second
   timevalue +=((hour >12 ) ? " PM":" AM")
   var convertHour = DifferHour
   var convertMinute = DifferMinute
   var convertSecond = DifferSecond
   var Diffms = Tday[key].getTime() - time.getTime()
   DifferHour = Math.floor(Diffms / daysms)
   Diffms -= DifferHour * daysms
   DifferMinute = Math.floor(Diffms / hoursms)
   Diffms -= DifferMinute * hoursms
   DifferSecond = Math.floor(Diffms / Secondms)
   Diffms -= DifferSecond * Secondms
   var dSecs = Math.floor(Diffms / microsecond)
  
   if(convertHour != DifferHour) a=DifferHour+":";
   if(convertMinute != DifferMinute) b=DifferMinute+":";
   if(convertSecond != DifferSecond) c=DifferSecond+"分"
     d=dSecs
     if (DifferHour>0) {a=a}
     else {a=''}
   document.getElementById("jstimerBox"+key).innerHTML = a + b + c ; //显示倒计时信息
}
*/
 
 
	// 倒计时
	function GetRTime2(){
		//var text = GetRTime('2016/02/27 17:34:00');
	   <tpshop sql="select * from __PREFIX__goods as g inner join __PREFIX__flash_sale as f on g.goods_id = f.goods_id limit 3" key="k" item='v'>
		var text{$v[goods_id]} = GetRTime('{$v.end_time|date="Y/m/d H:i:s",###}');
		
		if (typeof(text{$v[goods_id]}) == "undefined") 
				$("#surplus_text{$v[goods_id]}").text('活动已结束');
		else   		
				$("#surplus_text{$v[goods_id]}").text(text{$v[goods_id]});
			
	   </tpshop>
	}
	setInterval(GetRTime2,1000);
</script>


    <div class="hot_list">
		<foreach name="thems" item="v" key="k">

        <a href="{:U('Mobile/Goods/goodsList',array('id'=>$v[id]))}">
            <img src="{$v['image']}" alt="">
            <p>{$v['mobile_name']}</p>
        </a>
		</foreach>
    </div>



<!--<section class="index_floor_lou">-->
	  <!--<div class="floor_body">-->
	    <!--<h2>-->
	      <!--<em></em>促销商品-->
            <!--&lt;!&ndash;<div class="geng"><a href="{:U('Goods/search',array('q'=>'促销'))}">更多</a><span></span></div>&ndash;&gt;-->
	    <!--</h2>-->
	    <!--<div id="scroll_promotion">-->
	        <!--<ul>-->
	         <!--<tpshop sql="select * from __PREFIX__goods as g inner join __PREFIX__flash_sale as f on g.goods_id = f.goods_id limit 3" key="key" item='val'>-->
	          <!--<li>-->
	            <!--<a href="{:U('Mobile/Goods/goodsInfo',array('id'=>$v[goods_id]))}" title="{$val.goods_name}"></a>-->
	            <!--<div class="index_pro">-->
		            <!--<a href="{:U('Mobile/Goods/goodsInfo',array('id'=>$val[goods_id]))}" title="{$val.goods_name}"> -->
		              <!--<div class="products_kuang">-->
		              	<!--<div class="timerBox" id="surplus_text{$val[goods_id]}">1时 59分 59秒</div>-->
		                <!--<img src="{$val.goods_id|goods_thum_images=400,400}">-->
		              <!--</div>-->
		              <!--<div class="goods_name">{$val.goods_name}</div>-->
		            <!--</a>-->
		              <!--<div class="price">-->
                      <!--<a href="javascript:AjaxAddCart({$val[goods_id]},1,0);" class="btns">-->
		                  <!--<img src="__STATIC__/images/index_flow.png">-->
                      <!--</a>-->
		                <!--<span class="price_pro">￥{$val.price}元</span>-->
		              <!--</div>-->
				<!--</div>-->
	          <!--</li>-->
	          <!--</tpshop>-->
	        <!--</ul>-->
	    <!--</div>-->
	<!--</div>-->
<!--</section>-->

<!--<div class="floor_images">-->
	  <!--<dl>-->
        <!--<dt>-->
          <!--<adv  limit="1" item="v" pid="305">-->
            <!--<a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> >-->
                <!--<img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}" border="0">-->
            <!--</a>-->
           <!--</adv>-->
        <!--</dt>-->
        <!--<dd>-->
        <!--<span class="Edge">-->
          <!--<adv  limit="1" item="v" pid="306">-->
            <!--<a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> >-->
                <!--<img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}" border="0">-->
            <!--</a>-->
           <!--</adv>-->
        <!--</span>-->
        <!--<span>-->
          <!--<adv  limit="1" item="v" pid="307">-->
            <!--<a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> >-->
                <!--<img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}" border="0">-->
            <!--</a>-->
           <!--</adv>-->
        <!--</span>-->
        <!--</dd>-->
      <!--</dl>-->
	<!--<strong>-->
            <!--<adv  limit="1" item="v" pid="308">-->
            <!--<a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> >-->
                <!--<img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}" border="0">-->
            <!--</a>-->
           <!--</adv>-->
    <!--</strong>-->
<!--</div>-->

<section class="index_floor">
  <div class="floor_body1">
     <div class="hot_title" style="margin-bottom: 10px">当季热批</div>

		<!--<div class="geng"> <a href="{:U('Goods/search',array('q'=>'精品'))}">更多</a> <span></span></div>-->

    <div id="scroll_best" class="scroll_hot">
      <div class="bd">
        <ul>
        <assign name="fl" value="1"/>
         <tpshop sql="select * from __PREFIX__goods where is_recommend=1 order by sort limit 9" item="v" key="k">
          <li>
            <a href="{:U('Mobile/Goods/goodsInfo',array('id'=>$v[goods_id]))}" title="{$v.goods_name}">
             <div class="index_pro">
	              <div class="products_kuang">
	                <img src="{$v.goods_id|goods_thum_images=400,400}"></div>
	              <div class="goods_name">{$v.goods_name}</div>
	              <div class="price">
	                 <a href="javascript:AjaxAddCart({$v[goods_id]},1,0);" class="btns">
	                    <img src="__STATIC__/images/index_flow.png">
	                 </a>
	                 <span href="{:U('Mobile/Goods/goodsInfo',array('id'=>$v[goods_id]))}" class="price_pro">￥{$v.shop_price}元</span>
	              </div>
              </div>
            </a>
           </li>
           <if condition="($fl++%3 eq 0) && ($fl lt 9)"></ul><ul></if>
           </tpshop>
           </ul>
       </div>
       <div class="hd">
          <ul></ul>
       </div>
      </div>
    </div>
  </section>
  <script type="text/javascript">
    TouchSlide({
      slideCell:"#scroll_best",
      titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
      effect:"leftLoop",
      autoPage:true, //自动分页
      //switchLoad:"_src" //切换加载，真实图片路径为"_src"
    });
  </script>




<div id="index_banner" class="index_banner">
	<div class="bd">
		<ul>
          <adv  limit="2" item="v" pid="309">
          <li>
            <a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if> >
                <img src="{$v[ad_code]}" title="{$v[title]}" style="{$v[style]}" border="0">
            </a>
            </li>
           </adv>
	    </ul>
	</div>
	<div class="hd">
		<ul>
        </ul>
	</div>
</div>




<script type="text/javascript">
	TouchSlide({
		slideCell:"#index_banner",
		titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
		mainCell:".bd ul",
		effect:"leftLoop",
		autoPage:true,//自动分页
		autoPlay:true //自动播放
	});
</script>

	<div class="hot11_pic" id="hot_pic">
		<a href="javascript:;" class="current">生产车间</a>
		<a href="javascript:;">厂房实景</a>
		<a href="javascript:;">资质证书</a>
	</div>

	<div class="hotpic_con">
		<div class="hot_box" style="display: block;">
			<div class="swiper-container swiper-container2">
				<div class="swiper-wrapper">


						<foreach name="ad_51317" item="v" key="k">
							<div class="swiper-slide">
				   
				            <img src="{$v['ad_code']}" alt="">
				         </div>
				       
						</foreach>
				    


					<!-- <div class="swiper-slide"><img src="images/banner1.jpg" alt=""></div>
					<div class="swiper-slide"><img src="images/banner1.jpg" alt=""></div>
					<div class="swiper-slide"><img src="images/banner1.jpg" alt=""></div>
 -->
				</div>
				<div class="swiper-button-prev"><</div>
				<div class="swiper-button-next">></div>

			</div>
		</div>

		<div class="hot_box">
			<div class="swiper-container swiper-container2">
				<div class="swiper-wrapper">
					<foreach name="ad_51318" item="v" key="k">
							<div class="swiper-slide">
				   
				            <img src="{$v['ad_code']}" alt="">
				         </div>
				       
						</foreach>
				<!-- 	<div class="swiper-slide"><img src="images/0207_21_012_02.jpg" alt=""></div>
					<div class="swiper-slide"><img src="images/0207_21_012_02.jpg" alt=""></div>
					<div class="swiper-slide"><img src="images/0207_21_012_02.jpg" alt=""></div> -->

				</div>
				<div class="swiper-button-prev"><</div>
				<div class="swiper-button-next">></div>

			</div>
		</div>

		<div class="hot_box">
			<div class="swiper-container swiper-container2">
				<div class="swiper-wrapper">
					<foreach name="ad_51319" item="v" key="k">
							<div class="swiper-slide">
				   
				            <img src="{$v['ad_code']}" alt="">
				         </div>
				       
						</foreach>
					<!-- <div class="swiper-slide"><img src="images/banner1.jpg" alt=""></div>
					<div class="swiper-slide"><img src="images/banner1.jpg" alt=""></div>
					<div class="swiper-slide"><img src="images/banner1.jpg" alt=""></div>
 -->
				</div>
				<div class="swiper-button-prev"><</div>
				<div class="swiper-button-next">></div>

			</div>
		</div>
	</div>

	<div class="hot_bot_txt">十二年只做好被芯</div>


	<script type="text/javascript">
		var mySwiper = new Swiper ('.swiper-container1', {
			direction: 'horizontal',
			loop: true,
			autoplay:4000,
			// 如果需要分页器
			pagination: '.swiper-pagination',
			//   paginationBulletRender: function (swiper, index, className) {
			//     return '<span class="' + className + '">' + (index + 1) + '</span>';
			// }

		})

		var mySwiper = new Swiper ('.swiper-container2', {
			direction: 'horizontal',
			loop: true,
			autoplay:114000,
			nextButton: '.swiper-button-next',
			prevButton: '.swiper-button-prev',

		})

		$("#hot_pic a").click(function(){
			var index=$(this).index();
			$(this).addClass("current").siblings().removeClass("current");
			$(".hotpic_con .hot_box").eq(index).show().siblings().hide();
		})

	</script>

<script type="text/javascript">
var url = "index.php?m=Mobile&c=Index&a=ajaxGetMore";
$(function(){
	//$('#J_ItemList').more({'address': url});
	getGoodsList();
});

var page = 1;
function getGoodsList(){
	$('.get_more').show();
	$.ajax({
		type : "get",
		url:"/index.php?m=Mobile&c=Index&a=ajaxGetMore&p="+page,
		dataType:'html',
		success: function(data)
		{
			if(data){
				$("#J_ItemList>ul").append(data);
				page++;
				$('.get_more').hide();
			}else{
				$('.get_more').hide();
				$('#getmore').remove();
			}
		}
	});
}
</script>






<include file="Public/footer"/>
<script>
function goTop(){
	$('html,body').animate({'scrollTop':0},600);
}
</script>

</div>

<include file="Public/footer_nav"/>

<script type="text/javascript">
$(function() {
    $('#search_text').click(function(){
        $(".showpage").children('div').hide();
        $("#search_hide").css('position','fixed').css('top','0px').css('width','100%').css('z-index','999').show();
    })
    $('#get_search_box').click(function(){
        $(".showpage").children('div').hide();
        $("#search_hide").css('position','fixed').css('top','0px').css('width','100%').css('z-index','999').show();
    })
    $("#search_hide .close").click(function(){
        $(".showpage").children('div').show();
        $("#search_hide").hide();
    })
});
</script>
<script>
$('.search-type li').click(function() {
    $(this).addClass('cur').siblings().removeClass('cur');
    $('#searchtype').val($(this).attr('num'));
});
$('#searchtype').val($(this).attr('0'));
</script>
<script src="__PUBLIC__/js/jqueryUrlGet.js"></script><!--获取get参数插件-->
<script> set_first_leader(); //设置推荐人 </script>

 <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

<script>
wx.config({
   debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
   appId: '{$appid}', // 必填，公众号的唯一标识
   timestamp:{$timestamp} , // 必填，生成签名的时间戳
   nonceStr: '{$nonceStr}', // 必填，生成签名的随机串
   signature: '{$signature}',// 必填，签名，见附录1
   jsApiList: ['onMenuShareAppMessage','onMenuShareTimeline'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
 });

 wx.ready(function(){
  //分享给朋友
  wx.onMenuShareAppMessage({
    title: '欢迎光临', // 分享标题 此处$title可在控制器端传递也可在页面传递 页面传递讲解在下面哦
    desc: '刘伶醉家纺', //分享描述
    link: '{$url}', // 分享链接
    imgUrl: '', // 分享图标
    type: '', // 分享类型,music、video或link，不填默认为link
    dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
    success: function () {
       alert('分享成功');
    },
    cancel: function () {
      // 用户取消分享后执行的回调函数
      // alert('取消分享');
    }
  });
  //分享到朋友圈
   wx.onMenuShareTimeline({
    title: '欢迎光临', // 分享标题
    desc: '刘伶醉家纺', // 分享描述
    link: '{$url}', // 分享链接
    imgUrl: '', // 分享图标
    success: function () {
      // 用户确认分享后执行的回调函数
    },
    cancel: function () {
      // 用户取消分享后执行的回调函数
    }
  });
 });

</script>



</div>
</body>

</html>